import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-admin/userskill/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (userId) => {
  return request({
    url: '/api/mes-admin/userskill/detail',
    method: 'get',
    params: {
      userId
    }
  });
};

export const remove = (ids) => {
  return request({
    url: '/api/mes-admin/userskill/remove',
    method: 'post',
    params: {
      ids
    }
  });
};

export const add = (row) => {
  return request({
    url: '/api/mes-admin/userskill/submit',
    method: 'post',
    data: row
  });
};

export const update = (row) => {
  return request({
    url: '/api/mes-admin/userskill/submit',
    method: 'post',
    data: row
  });
};
// blade-log/operation/page?title=USER_SKlLL&biz_code=admin
// biz_code=用户名
// createBy createTime remark
export const getOperationLog = (biz_code) => {
  return request({
    url: '/api/blade-log/operation/page',
    method: 'get',
    params: {
      title: "USER_SKILL",
      biz_code
    }
  });
}